# -*- coding: utf-8 -*-

"""myTags.py

my tags
"""

import random
import glob
import os
import re
import datetime

from django import template
from django.conf import settings
from django.template import Context, Template, loader, resolve_variable

register = template.Library()

@register.filter
def attr(value, name=None):
	if name: return value[name]
	return None

@register.filter
def dir(value, name=None):
	print value
	print name
	return None